#pragma once

#include "cocos2d.h"

#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "CommonCocos/PreloadListener.h"

USING_NS_CC;

class StartUI : public cocos2d::Layer, public PreloadListener
{
public:
    static cocos2d::Scene* createScene();
	CREATE_FUNC(StartUI);

public:
	StartUI();

	virtual bool init();

	virtual void onStart() override;
	virtual void onProgress(int percent) override;
	virtual void onError(const char* info) override;
	virtual void onEnd(bool result) override;

private:
	ui::Button* m_pBtnStartGame;
	ui::Button* m_pBtnKefu;
	ui::Button* m_pBtnExchangeCode;
	ui::Button* m_pBtnMoreGame;
	ui::Button* m_pBtnSound;
};

